package com.cskaoyan.service;

import com.cskaoyan.bean.vo.BaseRespVo;
import com.cskaoyan.bean.vo.CheckoutVo;
import com.cskaoyan.domain.MarketCart;

import java.util.List;

public interface CartService {
    Integer getGoodsCountByUserId(Integer userId);
    BaseRespVo addCartGoods(Integer goodsId, Integer userId, Integer number, Integer productId);

    BaseRespVo selectCartIndexByUserId(Integer userId);

    BaseRespVo checkCart(Integer isChecked, List<Integer> productIds, Integer userId);

    BaseRespVo fastAddCartGoods(Integer goodsId, Integer userId, Integer number, Integer productId);

    BaseRespVo getCartCheckout(CheckoutVo checkoutVo, Integer userId);
    int updatechecked(MarketCart goodsByProductIdAndchecked, Integer integer);

    int updateDeleted(MarketCart marketCart, Integer productId);
    int updateNumber(MarketCart marketCart, Integer goodsId);
}